import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 通用材料建档明细
export const GeneralMaterialUnitPrice = (parms:any) => {
    return service.post<any,any>(`/lot/getLotMtlUsgPriceChe`,parms)
}

// 填充厂商单价
export const FillInUnitPrice = (vendorName:string,vendorNo:string,price:string,parms:any) => {
    return LoginWork.post<any,any>(`/mtl/updateGenericMtlWP?vendorName=${vendorName}&vendorNo=${vendorNo}&price=${price}`,parms)
}

// 更新材料建档
export const UpdateMaterialFiling = (parms:any) => {
    return LoginWork.post<any,any>(`/mtl/updateGenericMtl`,parms)
}

// 打勾记录复制
export const ChecktoCopyRecords = (choose:number,parms:any) => {
    return LoginWork.post<any,any>(`/lot/updateLotMtlCheck?choose=${choose}`,parms)
}